use strict;
use Test::More tests => 13;

BEGIN {
    use_ok('Stdlog::Levels');
    use_ok('Stdlog::Config');
    use_ok('Stdlog::Formatter');
    use_ok('Stdlog::Criteria');
    use_ok('Stdlog::Writer');
    use_ok('Stdlog::Writer::File');
    use_ok('Stdlog::Writer::STDERR');
    SKIP: {
        eval { require Sys::Syslog };
        skip('Stdlog::Writer::Syslog - Sys::Syslog not installed', 1) if $@;
        use_ok('Stdlog::Writer::Syslog');
    }
    SKIP: {
        eval { require DBI };
        skip('Stdlog::Writer::DBI - DBI not installed', 1) if $@;
        use_ok('Stdlog::Writer::DBI');
    }
    SKIP: {
        eval { require IO::Socket };
        skip('Stdlog::Writer::Socket - IO::Socket not installed', 1) if $@;
        use_ok('Stdlog::Writer::Socket');
    }
    SKIP: {
        eval { require LWP::UserAgent };
        skip('Stdlog::Writer::HTTP - LWP not installed', 1) if $@;
        use_ok('Stdlog::Writer::HTTP');
    }
    use_ok('Stdlog::Logger');
    use_ok('Stdlog');
}

